﻿using System;
using System.Collections.Generic;
using System.Text;
using WindowsLive.Writer.Api;

namespace ProfanityChecker
{
    public class Settings
    {
        IProperties m_properties;
        public Settings(IProperties properties)
        {
            m_properties = properties;
        }

        public string BannedWords
        {
            get { return m_properties.GetString("BannedWords", "fuck,fucking,shit,bollocks"); }
            set { m_properties.SetString("BannedWords", value); }
        }

        internal string Password
        {
            get { return PC1Encryption.DecryptString(m_properties.GetString("pswd", "")); }
            set { m_properties.SetString("pswd", PC1Encryption.EncryptString(value)); }        
        }
    }
}
